#include<stdio.h>
#include<string.h>

void file_cpy(const char *dest , const char *src)
{
    FILE *fp_dest = fopen(dest,"a+");
    FILE *fp_src = fopen(src,"r"); //a+ ,r+
    char ch = 0;
    for (size_t i = 0; EOF != (ch = fgetc(fp_src)) ; i++)
    {
        fputc(ch , fp_dest);
    }
    fclose(fp_dest);
    fclose(fp_src);
}
int main(int argc, char const *argv[])
{

    if(argc <= 3)
    {
        file_cpy(argv[1],argv[2]);    
    }
    else
    printf("%s flie1 flie2",argv[0]);
    return 0;
}
